import 'dart:convert' show json;

import 'package:x3_base_core/base_models/base_model_asT.dart';

class BasePermissionModel {

  BasePermissionModel({
    this.appMenuId,
    this.appMenuName,
    this.appMenuDescription,
    this.appMenuPhoto,
    this.appModular,
  });

  factory BasePermissionModel.fromJson(Map<String, dynamic> jsonRes) => jsonRes == null
      ? null
      : BasePermissionModel(
          appMenuId: asT<String>(jsonRes['appMenuId']),
          appMenuName: asT<String>(jsonRes['appMenuName']),
          appMenuDescription: asT<String>(jsonRes['appMenuDescription']),
          appMenuPhoto: asT<String>(jsonRes['appMenuPhoto']),
          appModular: asT<String>(jsonRes['appModular']),
        );

  String appMenuId;
  String appMenuName;
  String appMenuDescription;
  String appMenuPhoto;
  String appModular;

  Map<String, dynamic> toJson() => <String, dynamic>{'appMenuId': appMenuId, 'appMenuName': appMenuName, 'appMenuDescription': appMenuDescription, 'appMenuPhoto': appMenuPhoto, 'appModular': appModular };

  @override
  String toString() {
    return json.encode(this);
  }

}
